package com.xwdeshj.repository;

import com.xwdeshj.entity.XwFarmAtlasinfo;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by BKWJA on 2019/1/1.
 * 农家乐——农家图集信息
 */
public interface XwFarmAtlasinfoRepository extends JpaRepository<XwFarmAtlasinfo,Integer> {

    //根据农家乐id，删除对应的相关数据
    public void  deleteByFarmEncryptid(String farm_encryptId);

    //根据商铺id，农家乐id，图集id，删除对应的相关数据
    public void deleteByBusinessEncryptidAndFarmEncryptidAndFarmAtlasId(String business_encryptId,
                                                                        String farm_encryptId,String farm_atlas_id);
    //根据图集id，删除对应的相关数据
    public void deleteByFarmAtlasId(Integer farm_atlas_id);

    public XwFarmAtlasinfo findByFarmAtlasId(Integer farm_atlas_id);

}
